/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.hazardsource.domain;

import com.koron.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(value = "标准检查表", description = "标准检查表实体类")
public class CheckListEntry extends BaseEntity {
    @ApiModelProperty(value = "检查表名称", name = "dictIndex", required = true)
    private String name;
    @ApiModelProperty(value = "标准检查表编码，与危险源配置库的编码一致", name = "code")
    private String code;
    @ApiModelProperty(value = "检查表类型,来自基础配置,按是否有对应的危险源来分,分为危险源检查表、专项检查表、领导检查表、临时检查表", name = "checklistEntryTypeId", required = true)
    private String checklistEntryTypeId;
    @ApiModelProperty(value = "检查表类型名称", name = "checklistEntryTypeName", required = true)
    private String checklistEntryTypeName;
    @ApiModelProperty(value = "危险源ID", name = "hazardSourceId")
    private String hazardSourceId;
    @ApiModelProperty(value = "状态: 0表示废弃、1表示发布", name = "state")
    private Integer state;
    @ApiModelProperty(value = "业态ID", name = "businessTypeId", required = true)
    private String businessTypeId;
    @ApiModelProperty(value = "业态名称", name = "businessTypeName", required = true)
    private String businessTypeName;
    @ApiModelProperty(value = "是否配置检查项", name = "hasItems", required = true)
    private Integer hasItems;
    @ApiModelProperty(value = "状态标记：0草稿1审批中2审批通过", name = "fstatusflag")
    private Integer fstatusflag;
    private List<CheckListItem> itemList;
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getChecklistEntryTypeId() {
        return checklistEntryTypeId;
    }

    public void setChecklistEntryTypeId(String checklistEntryTypeId) {
        this.checklistEntryTypeId = checklistEntryTypeId;
    }

    public String getHazardSourceId() {
        return hazardSourceId;
    }

    public void setHazardSourceId(String hazardSourceId) {
        this.hazardSourceId = hazardSourceId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getBusinessTypeId() {
        return businessTypeId;
    }

    public void setBusinessTypeId(String businessTypeId) {
        this.businessTypeId = businessTypeId;
    }

    public Integer getHasItems() {
        return hasItems;
    }

    public void setHasItems(Integer hasItems) {
        this.hasItems = hasItems;
    }
    
    public Integer getFstatusflag() {
		return fstatusflag;
	}

	public void setFstatusflag(Integer fstatusflag) {
		this.fstatusflag = fstatusflag;
	}
	public List<CheckListItem> getItemList() {
		return itemList;
	}

	public void setItemList(List<CheckListItem> itemList) {
		this.itemList = itemList;
	}
	
	public String getChecklistEntryTypeName() {
		return checklistEntryTypeName;
	}

	public void setChecklistEntryTypeName(String checklistEntryTypeName) {
		this.checklistEntryTypeName = checklistEntryTypeName;
	}

	public String getBusinessTypeName() {
		return businessTypeName;
	}

	public void setBusinessTypeName(String businessTypeName) {
		this.businessTypeName = businessTypeName;
	}

	@Override
    public String toString() {
        return "CheckListEntry{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", checklistEntryTypeId='" + checklistEntryTypeId + '\'' +
                ", hazardSourceId='" + hazardSourceId + '\'' +
                ", state=" + state +
                ", businessTypeId='" + businessTypeId + '\'' +
                ", hasItems=" + hasItems +
                '}';
    }
}
